﻿using Autofac.Core;
using Simple.Tools;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;

namespace GuangHaoJie.FMS.WebConfiguration

{
	public class AutowiredPropertySelector : IPropertySelector
	{
		public bool InjectProperty(PropertyInfo propertyInfo, object instance)
		{
			return propertyInfo.CustomAttributes.
			   Any(it => it.AttributeType == typeof(AutowiredAttribute));
		}
	}
}